package com.teach.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 
 * @TableName tb_seckillgoods
 */
@TableName(value ="tb_seckillgoods")
@Data
public class TbSeckillgoods implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 课程名
     */
    private String courseName;

    /**
     * 价格
     */
    private BigDecimal coursePrice;

    /**
     * 课程的购买数量
     */
    private Integer quantity;

    /**
     * 课程简介
     */
    private String courseSynopsis;

    /**
     * 数量
     */
    private Integer num;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 秒杀开始时间
     */
    private LocalDateTime startTime;

    /**
     * 结束时间
     */
    private LocalDateTime endTime;

    /**
     * 判断是否能够使用优惠券
     */
    private Integer couponStatus;

    /**
     * 优惠券的面值
     */
    private Integer couponMoney;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}